<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>03-子选择器</title>
  <style>
    /* 子选择器 */
    .nav>a {
      color: red;
    }

    .set ul li a {
      text-decoration: none;
      color: red;
    }
  </style>
</head>

<body>

  <div class="nav">
    <a href="#">div儿子</a>
    <p>
      <a href="">p儿子</a>
    </p>
  </div>

  <!-- 课堂小提问 -->
  <div class="set">
    <ul>
      <li><a href="#">百度</a></li>
      <li><a href="#">新浪</a></li>
    </ul>
  </div>

</body>

</html>